# coding: utf-8
from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy()



class CollectionInfo(db.Model):
    __tablename__ = 'collection_info'

    AutoID = db.Column(db.BigInteger, primary_key=True, info='主键自增')
    CUserID = db.Column(db.String(100), info='外键，收藏表用户id对应用户表')
    PassageID = db.Column(db.BigInteger, info='外键对应文章表')
    IsDelete = db.Column(db.Integer, server_default=db.FetchedValue(), info='状态0-正常，1-删除')
    CreateTime = db.Column(db.DateTime, server_default=db.FetchedValue())
